package com.company.cloud.art.modules.api.response;

import com.company.cloud.tag.modules.api.response.Label;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

@Getter
@Setter
public class ActSignUp {


    @ApiModelProperty(value = "ID")
    private Integer id;


    @ApiModelProperty(value = "活动编号")
    private String activityNo;


    @ApiModelProperty(value = "用户ID")
    private Integer userId;


    @ApiModelProperty(value = "姓名")
    private String name;


    @ApiModelProperty(value = "昵称")
    private String nickName;


    @ApiModelProperty(value = "电话")
    private String mobile;


    @ApiModelProperty(value = "报名时间")
    private LocalDateTime signUpTime;


    //=========================


    @ApiModelProperty(value = "公司编号")
    private String companyNo;


    @ApiModelProperty(value = "标题")
    private String title;


    @ApiModelProperty(value = "简述")
    private String memo;


    @ApiModelProperty(value = "封面图片")
    private Set<String> coverImage;

    @ApiModelProperty(value = "详情")
    private String detail;


    @ApiModelProperty(value = "活动地址")
    private String addr;


    @ApiModelProperty(value = "活动开始时间")
    private LocalDateTime startTime;


    @ApiModelProperty(value = "活动结束时间")
    private LocalDateTime endTime;


    @ApiModelProperty(value = "是否开启线上报名")
    private String isSignUp;


    @ApiModelProperty(value = "标签")
    private List<Label> tags;

    public  void addTag(Label tag){
        if(this.tags==null){
            this.tags=new ArrayList<>();
        }
        if(tag!=null){
            this.tags.add(tag);
        }
    }



}
